package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.UserVigorousCollectionRecords;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.AdmiVigorousCollectionVO;
import com.sc.nft.entity.vo.UserVigorousCollectionVO;
import com.sc.nft.entity.vo.VigorousSecretAreaPageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 质押任务-用户激活记录-关联藏品(sc_user_vigorous_collection_records)数据Mapper
 *
 * @author kancy
 * @since 2023-06-13 14:55:25
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface UserVigorousCollectionRecordsMapper extends BaseMapper<UserVigorousCollectionRecords> {

    /**
     * 获取激活记录关联的NFT信息
     * @param userVigorousRecordsId
     * @return
     */
    List<AdmiVigorousCollectionVO> adminVigorousCollectionRecord(@Param("userVigorousRecordsId") Long userVigorousRecordsId);

    /**
     * 分页获取用户的激活记录
     * @param page
     * @param userId
     * @return
     */
    Page<VigorousSecretAreaPageVO> getPageVigorousSecretAreaRecordsByUserId(Page page,@Param("userId") Long userId);

    /**
     * 根据记录id获取用户激活记录关联的NFT信息
     * @param userVigorousRecordsId
     * @return
     */
    List<UserVigorousCollectionVO> getUserVigorousCollectionListByUserVigorousRecordsId(@Param("userVigorousRecordsId") Long userVigorousRecordsId);
}
